function uploadFile(fileElement,action) {
	var f = document.createElement("form");
	document.body.appendChild(f);
	var i = document.createElement("input");
	i.type = "file";
	f.appendChild(i);
	i.value = fileElement.value;
	i.name = "file";
	f.action = "aa.asp";
	f.method=action;
	f.submit();
}